package com.tenbent.product.center.example.stu.mapper;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.tenbent.product.base.exception.TenbentException;
import com.tenbent.product.base.mapper.BaseSqlMapper;
import com.tenbent.product.center.example.stu.bo.Student;

/**
 * 数据层
 *
 * Created by ThinkPad on 2017/7/27.
 */
@Repository(value = "studentMapper")
public interface StudentMapper extends BaseSqlMapper<Student> {

	List<Student> queryStuList(Student stu) throws TenbentException;

	List<Map<String, Object>> queryStuListMap(Map<String, Object> paramMap) throws TenbentException;

	void saveStu(Student stu) throws TenbentException;

	void updateStu(Student stu) throws TenbentException;

	Student findOne(Integer id) throws TenbentException;

	void removeStu(Integer id) throws TenbentException;
}
